import junit.framework.TestCase;


public class PrimeGeneratorTest extends TestCase {

	public PrimeGeneratorTest(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
		
		
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	public void testPrimeGenerator(){
		String[] input = new String[]{"0"};
		PrimeGenerator.main(input);
		input = new String[]{"1"};
		PrimeGenerator.main(input);
		input = new String[]{"10000"};
		PrimeGenerator.main(input);
		
		
		
		
	}
	void testNext(){
		PrimeGenerator.primeSeries = new int[]{2,3,5,7,11,0,0,0};
		PrimeGenerator.primeCounter = 4;
		PrimeGenerator primeGen = new PrimeGenerator (10);
		assertTrue(primeGen.next()==13);
		assertTrue(primeGen.next()==17);
		
		
	}

}
